<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="UTF-8" %>
<%@page import="com.hkunderground.blogger.helper.ConstantHelper" %>
<%@page import="com.hkunderground.blogger.obj.Blog" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>>> > hkUnderground < <<</title>
</head>
<body>
<%
	Blog[] bloggerArr = (Blog[])request.getAttribute(ConstantHelper.BLOGGER_NAME_BLOGARR);
	
	Integer sNextIndex = (Integer)request.getAttribute(ConstantHelper.BLOGGER_NAME_NEXT_INDEX);
	Integer sPreviousIndex = (Integer)request.getAttribute(ConstantHelper.BLOGGER_NAME_PREVIOUS_INDEX);
	
	if( bloggerArr == null)
	{
%>
		No Blog
<%		
	}
	else
	{
		for (Blog b: bloggerArr)
		{
%>			
			Title: <b><a href="/viewblog/<%= b.getPostId() %>"><%= b.getBlogTitle() %></a></b><BR>
			Date: <%= b.getPublishDate() %><br>
			<%= b.getBlogSummary() %><p/>
<%
		}//for b
		
		out.println("<p/>");
		
		if (sPreviousIndex != null)
		{
%>			
			<a href="/hkugblogger/<%= ConstantHelper.KEYWORD_PAGE %>/<%= sPreviousIndex %>">Previous</a>
<%
		}//if (sPreviousIndex != null)
	
		out.println("&nbsp;");
		
		if (sNextIndex != null)
		{
%>			
			<a href="/hkugblogger/<%= ConstantHelper.KEYWORD_PAGE %>/<%= sNextIndex %>">Next</a>
<%
		}//if (sNextIndex != null)
	}//if blog arr is null
%>
</body>
</html>